package com.rocksdata.mc.entity;

import java.io.Serializable;

/**
 * Created by 陈堂正 on 2016/11/24.
 */
public class CampusAppInfo implements Serializable{
    private String code;
    private String name;
    private String icon;
    private String group;
    private int is_usable;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public int getIs_usable() {
        return is_usable;
    }

    public void setIs_usable(int is_usable) {
        this.is_usable = is_usable;
    }

    public boolean usable () {
        return is_usable == 1;
    }

    @Override
    public boolean equals(Object o) {
        if (o == null || !(o instanceof CampusAppInfo)) return false;
        CampusAppInfo info = (CampusAppInfo)o;
        return info.code.equals(code);
    }
}
